package com.cloudptt.api.comm;

public class Const {

	public static final boolean DEBUG = true;
	
	public static final String AUTO_START = "autoStart";
	
	public static boolean autoStart = false;
	
	public static boolean highlightVideo = false;
	
	public static final String APP_NAME = "CloudPTT";

	public static final String LAN_ZH_CN = "zh_CN";
	public static final String LAN_EN_US = "en_GB";
	public static final String LAN_SYSTEM = "system";
	
//	public static final String COUNTRYCODE_CHINA_SC = "0086";
	
	public static final String FIREND_APP_PACKAGE_NAME = "";
	
	public static final String SHARED_SECTION_AUDIO = "audio";
	public static final String SHARED_PROP_CURRENTMODE = "currentMode";
	public static final String SHARED_PROP_CURRENTVOLUME = "currentVolume";
	
	
	public static final String INTENT_KEY = "key";
	public static final String INTENT_ARRAY_RESOURCEID = "arrayResourceID";
	public static final String INTENT_KEY_RESOURCE_ID = "keyValue";
	public static final String INTENT_VALUETYPE = "valueType";
	
//	public static final String DEFAULT_POSITIONING_IP = "182.92.190.122";
	public static final String DEFAULT_POSITIONING_IP = "172.18.164.1";
	public static final String DEFAULT_POSITIONING_PORT = "60001";
	public static final String SHARED_PROP_POSITIONING_IP = "positioningIP";
	public static final String SHARED_PROP_POSITIONING_PORT = "positioningPort";
	public static final String SHARED_PROP_POSITIONING_ADDRESS = "positioningAddress";
	public static final String ADDRESS_SPLIT = ":";
	public static final int POSITIONING_REQCODE = 10001;

	public static final String SHARED_SECTION_USERINFO = "userInfo";

	public static String SOCKET_SERVER = DEFAULT_POSITIONING_IP;
	public static int    SOCKET_PORT = 60001;
	// 默认timeout 时间 60s
	public final static int SOCKET_TIMOUT = 60 * 1000;

	public final static int SOCKET_READ_TIMOUT = 15 * 1000;

	// 如果没有连接无服务器。读线程的sleep时间
	public final static int SOCKET_SLEEP_SECOND = 3;

	// 心跳包发送间隔时间
	public final static int SOCKET_HEART_SECOND = 3;
	
	
	public final static String OPTION_TYPE = "TYPE";
	public final static String OPTION_VALUE ="VALUTE";
	
	public static final int MSG_TALK_ON = 1;
	public static final int MSG_TALK_OFF = 0;
	public static final String OP_START_OK ="0";
	public static final String OP_STOP    ="1";
	public static final String OP_RESTART ="2";
	
	public static final int FREQ_UP   = 1;
	public static final int FREQ_DOWN = 0;
}
